package com.justgame.project.service.api.feign;

import com.justgame.project.cloud.common.constant.AppConstant;

import com.justgame.project.service.api.dto.SysFileInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * SysFileInfo 微服务接口
 * @author ZhouWeiBo
 * @create 2022/4/13
 */
@FeignClient(value = AppConstant.SYSTEM,fallback = SysFileInfoClientFallback.class)
public interface ISysFileInfoClient {
    String API_PREFIX = "/feign/sys-file-info";
    String REAL_DEAL_FILE = API_PREFIX + "/real-deal";
    String REAL_BATCH_DEAL_FILES = API_PREFIX + "/real-batch-deal-files";
    /**
     * 删除文件记录信息
     * @param dto 数据
     * @return Boolean.class
     */
    @DeleteMapping(REAL_DEAL_FILE)
    Boolean deleteFile(@RequestBody SysFileInfoDTO dto);


    /**
     * 批量删除文件记录信息
     * @param paths 数据
     * @return Boolean.class
     */
    @DeleteMapping(REAL_BATCH_DEAL_FILES)
    Boolean deleteFiles(@RequestBody List<String> paths);
}
